<?php
/**
 * Created by PhpStorm.
 * User: chengenghong
 * Date: 2021-09-14
 * Time: 11:42
 */

namespace G244\Factory;


class TwigPageTemplate extends BasePageTemplate
{

    public function getTemplateString(): string
    {
        $renderedTitle = $this->titleTemplate->getTemplateString();
        return <<<HTML
        <div class="page">
            $renderedTitle
            <article class="content">{{ content }}</article>
        </div>
        HTML;
        // TODO: Implement getTemplateString() method.
    }
}
